function encrypt(src)
{
	var key = '0123456789ABHAEQ';
    //var key = 'yifisoft';
     //console.log('密钥：', key);
     //key = CryptoJS.enc.Hex.parse(key)
    key = CryptoJS.enc.Utf8.parse(key)

     //iv = CryptoJS.enc.Hex.parse("30313233343536373839414243444546")
    iv = CryptoJS.enc.Utf8.parse("adlotsoft_123456")
     //var src = "werty7890";
     //console.log('原字符串：', src);
     var enc = CryptoJS.AES.encrypt(src ,key,{
         iv:iv,
         mode: CryptoJS.mode.CBC,  
         padding: CryptoJS.pad.Pkcs7
     })

     //console.log('加密:',enc.toString());
     var enced = enc.ciphertext.toString()
     //console.log("加密：", enced);
     return enced;
}

function decrypt(src){

	 //var key = '3132333435363738393041424344454631323334353637383930414243444566';
     var key = '0123456789ABHAEQ';
     //console.log('密钥：', key);
     //key = CryptoJS.enc.Hex.parse(key)
     key = CryptoJS.enc.Utf8.parse(key)
     //iv = CryptoJS.enc.Hex.parse("30313233343536373839414243444546")
     iv = CryptoJS.enc.Utf8.parse("cangzhou_sd12345")
     
     var dec = CryptoJS.AES.decrypt(CryptoJS.format.Hex.parse(src), key,{
         iv:iv,
         mode: CryptoJS.mode.CBC,  
         padding: CryptoJS.pad.Pkcs7
     })
     //console.log('解密:',CryptoJS.enc.Utf8.stringify(dec));
     //return CryptoJS.enc.Utf8.stringify(dec);
     return dec.toString(CryptoJS.enc.Utf8)
}
	
